package com.vcg.comment.service;

import com.alibaba.fastjson.JSONObject;
import com.vcg.common.base.BaseService;
import com.vcg.comment.model.Comment;
import com.vcg.comment.model.query.CommentExample;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

public interface CommentService extends BaseService<Comment, CommentExample, String> {

    public JSONObject addComment(Comment comment);

    public JSONObject delComment(String id);

    public JSONObject getComment(String resourceId, Integer startNum, Integer endNum);

    public JSONObject closeComment(String resourceId);

    public JSONObject openComment(String resourceId);
}